package com.ruoyi.eam.doman;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 资产调拨对象 eam_allot_h
 *
 * @author xl
 * @date 2024-07-12
 */
public class EamAllotH extends BaseEntity
{
    public static final String RECEIPTS_STATUS = "receiptsStatus";
    private static final long serialVersionUID = 1L;

    /** 调拨id */
    private Long allotId;

    /** 调拨单号 */
    @Excel(name = "调拨单号")
    private String allotOdd;

    /** 单据状态 */
    @Excel(name = "单据状态")
    private Long receiptsStatus;

    /** 调拨日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调拨日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date allotDate;

    /** 制单人 */
    @Excel(name = "制单人")
    private Long prepared;

    @Excel(name = "制单人")
    private String preparedName;

    /** 制单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "制单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date preparedDate;

    /** 审核人 */
    @Excel(name = "审核人")
    private Long auditPerson;

    @Excel(name = "审核人")
    private String auditPersonName;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long creator;

    /** 调出部门 */
    @Excel(name = "调出部门")
    private Long exportDept;

    @Excel(name = "调出部门")
    private String exportDeptName;

    /** 调入部门 */
    @Excel(name = "调入部门")
    private Long foldDept;

    @Excel(name = "调入部门")
    private String foldDeptName;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String auditDate;

    /** 存放位置 */
    @Excel(name = "存放位置")
    private Long locationId;

    @Excel(name = "存放位置")
    private String locationName;


    /** 审核原因 */
    @Excel(name = "审核原因")
    private String AuditReason;

    @Excel(name = "审核原因")
    private Long isExportFold;

    @Excel(name = "审核原因")
    private Long isdel;


    @Excel(name = "资产集合")
    private List<EamAsset> assetlist;

    public List<EamAsset> getAssetlist() {
        return assetlist;
    }

    public void setAssetlist(List<EamAsset> list) {
        this.assetlist = list;
    }

    public Long getIsdel() {
        return isdel;
    }

    public void setIsdel(Long isdel) {
        this.isdel = isdel;
    }

    public Long getIsExportFold() {
        return isExportFold;
    }

    public void setIsExportFold(Long isExportFold) {
        this.isExportFold = isExportFold;
    }

    public String getPreparedName() {
        return preparedName;
    }

    public void setPreparedName(String preparedName) {
        this.preparedName = preparedName;
    }

    public String getAuditPersonName() {
        return auditPersonName;
    }

    public void setAuditPersonName(String auditPersonName) {
        this.auditPersonName = auditPersonName;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    public String getExportDeptName() {
        return exportDeptName;
    }

    public void setExportDeptName(String exportDeptName) {
        this.exportDeptName = exportDeptName;
    }

    public String getFoldDeptName() {
        return foldDeptName;
    }

    public void setFoldDeptName(String foldDeptName) {
        this.foldDeptName = foldDeptName;
    }

    public void setAllotId(Long allotId)
    {
        this.allotId = allotId;
    }

    public Long getAllotId()
    {
        return allotId;
    }
    public void setAllotOdd(String allotOdd)
    {
        this.allotOdd = allotOdd;
    }

    public String getAllotOdd()
    {
        return allotOdd;
    }
    public void setReceiptsStatus(Long receiptsStatus)
    {
        this.receiptsStatus = receiptsStatus;
    }

    public Long getReceiptsStatus()
    {
        return receiptsStatus;
    }
    public void setAllotDate(Date allotDate)
    {
        this.allotDate = allotDate;
    }

    public Date getAllotDate()
    {
        return allotDate;
    }
    public void setPrepared(Long prepared)
    {
        this.prepared = prepared;
    }

    public Long getPrepared()
    {
        return prepared;
    }
    public void setPreparedDate(Date preparedDate)
    {
        this.preparedDate = preparedDate;
    }

    public Date getPreparedDate()
    {
        return preparedDate;
    }
    public void setAuditPerson(Long auditPerson)
    {
        this.auditPerson = auditPerson;
    }

    public Long getAuditPerson()
    {
        return auditPerson;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setExportDept(Long exportDept)
    {
        this.exportDept = exportDept;
    }

    public Long getExportDept()
    {
        return exportDept;
    }
    public void setFoldDept(Long foldDept)
    {
        this.foldDept = foldDept;
    }

    public Long getFoldDept()
    {
        return foldDept;
    }
    public void setAuditDate(String auditDate)
    {
        this.auditDate = auditDate;
    }

    public String getAuditDate()
    {
        return auditDate;
    }
    public void setLocationId(Long locationId)
    {
        this.locationId = locationId;
    }

    public Long getLocationId()
    {
        return locationId;
    }
    public void setAuditReason(String AuditReason)
    {
        this.AuditReason = AuditReason;
    }

    public String getAuditReason()
    {
        return AuditReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("allotId", getAllotId())
            .append("allotOdd", getAllotOdd())
            .append(RECEIPTS_STATUS, getReceiptsStatus())
            .append("allotDate", getAllotDate())
            .append("prepared", getPrepared())
            .append("preparedDate", getPreparedDate())
            .append("remark", getRemark())
            .append("auditPerson", getAuditPerson())
            .append("creator", getCreator())
            .append("exportDept", getExportDept())
            .append("createTime", getCreateTime())
            .append("foldDept", getFoldDept())
            .append("auditDate", getAuditDate())
            .append("locationId", getLocationId())
            .append("AuditReason", getAuditReason())
            .toString();
    }
}
